import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const production: AppRouteModule = {
  path: '/production',
  name: 'Production',
  component: LAYOUT,
  meta: {
    orderNo: 30,
    icon: 'fluent:production-checkmark-20-regular',  
    title: t('routes.production.productionManagement'),
    policy: 'ProductionManagement',
  },
  children: [
    {
      path: 'plan',
      name: 'plan',
      component: () => import('/@/views/production/plan/Plan.vue'),
      meta: {
        title: t('routes.production.planManagement'),
        icon: 'icon-park-outline:plan',
        policy: 'ProductionManagement.PlanManagement',
      },
    }
  ]
};

export default production;
